package com.chagee.store.operation.server.model.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @Author : hk
 * @Date : 2024/7/2
 */

@Data
public class TaskRelationDetailResponse implements Serializable {

	private Long id;
	/**
	 * 任务编号
	 */
	private String taskId;
	/**
	 * 任务名称
	 */
	private String taskName;
	/**
	 * 示意图
	 */
	private List<FileVO> picture;
	/**
	 * 文字描述
	 */
	private String wordDescribe;

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		TaskRelationDetailResponse that = (TaskRelationDetailResponse) o;
		return Objects.equals(taskId, that.taskId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(taskId);
	}

	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	public static class FileVO implements Serializable {
		/**
		 * oss文件路径
		 */
		private String filePath;

		/**
		 * 文件名称
		 */
		private String fileName;

		/**
		 * 文件大小，byte
		 */
		private Long size;

		/**
		 * 文件类型
		 */
		private String type;

	}

}
